<?php

namespace STAGE\StageBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Tache
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="STAGE\StageBundle\Entity\TacheRepository")
 */
class Tache
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    /**
     * @var string
     *
     * @ORM\Column(name="description", type="text")
     */
    private $description;

    /**
     * @var boolean
     *
     * @ORM\Column(name="etat", type="boolean")
     */
    private $etat;
    /**
     *
     * @ORM\ManyToOne(targetEntity="STAGE\StageBundle\Entity\Stage",inversedBy="taches")
     */
    private $stage;
    /**
     *
     * @ORM\ManyToOne(targetEntity="STAGE\UserBundle\Entity\User",inversedBy="$taches")
     */
    private $users;
    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date_affectation", type="date",nullable=true)
     */
    private $dateAffectation;
    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date_limite", type="date",nullable=true)
     */
    private $dateLimite;
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

   

    /**
     * Set description
     *
     * @param string $description
     * @return Tache
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set etat
     *
     * @param boolean $etat
     * @return Tache
     */
    public function setEtat($etat)
    {
        $this->etat = $etat;

        return $this;
    }

    /**
     * Get etat
     *
     * @return boolean 
     */
    public function getEtat()
    {
        return $this->etat;
    }

    /**
     * Set stage
     *
     * @param \STAGE\StageBundle\Entity\Stage $stage
     * @return Tache
     */
    public function setStage(\STAGE\StageBundle\Entity\Stage $stage = null)
    {
        $this->stage = $stage;

        return $this;
    }

    /**
     * Get stage
     *
     * @return \STAGE\StageBundle\Entity\Stage 
     */
    public function getStage()
    {
        return $this->stage;
    }

    /**
     * Set user
     *
     * @param \STAGE\UserBundle\Entity\User $user
     * @return Tache
     */
    public function setUser(\STAGE\UserBundle\Entity\User $user = null)
    {
        $this->user = $user;

        return $this;
    }

    /**
     * Get user
     *
     * @return \STAGE\UserBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}
